import * as echarts from "echarts";
import chinaCity from "./chinaCity.json";

echarts.registerMap("china", { geoJSON: chinaCity });

export function getOption5() {
  return {
    series: [
      {
        type: "map",
        map: "china",
        zoom: 1,
        roam: true,
        data: [
          {
            name: "青岛市",
            itemStyle: {
              areaColor: "red",
            },
            label: {
              show: true,
              formatter() {
                return "青岛市(王宇家)";
              },
            },
          },
          {
            name: "安阳市",
            itemStyle: {
              areaColor: "red",
            },
            label: {
              show: true,
              formatter() {
                return "安阳市(陈智源家)";
              },
            },
          },
        ],
      },
    ],
  };
}
